<template>
  <el-dialog :visible.sync="loading" center>
    <el-spinner></el-spinner>
  </el-dialog>
</template>

<script>
export default {
  name: 'Loading',
  props: {
    loading: {
      type: Boolean,
      required: true
    }
  }
};
</script>

<style scoped>
.el-dialog {
  background: transparent;
  box-shadow: none;
}
.el-spinner {
  margin: 0 auto;
}
</style>